package com.example.li_han.pojo;

import java.util.Date;

public class News {
    private int newsId;
    private int typeId;
    private String typeName;
    private String newsTitle;
    private String newsContent;
    private String newsImage;
    private boolean isTop;
    private boolean isShowHome;
    private int viewCount;
    private boolean isImageNews;
    private Date publishDate;

    public News() {}

    public int getNewsId() {
        return newsId;
    }

    public void setNewsId(int newsId) {
        this.newsId = newsId;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getNewsTitle() {
        return newsTitle;
    }

    public void setNewsTitle(String newsTitle) {
        this.newsTitle = newsTitle;
    }

    public String getNewsContent() {
        return newsContent;
    }

    public void setNewsContent(String newsContent) {
        this.newsContent = newsContent;
    }

    public String getNewsImage() {
        return newsImage;
    }

    public void setNewsImage(String newsImage) {
        this.newsImage = newsImage;
    }

    public boolean isTop() {
        return isTop;
    }

    public void setTop(boolean top) {
        isTop = top;
    }

    public boolean isShowHome() {
        return isShowHome;
    }

    public void setShowHome(boolean showHome) {
        isShowHome = showHome;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public boolean isImageNews() {
        return isImageNews;
    }

    public void setImageNews(boolean imageNews) {
        isImageNews = imageNews;
    }

    public Date getPublishDate() {
        return publishDate;
    }

    public void setPublishDate(Date publishDate) {
        this.publishDate = publishDate;
    }

    public News(int newsId, int typeId, String typeName, String newsTitle, String newsContent, String newsImage, boolean isTop, boolean isShowHome, int viewCount, boolean isImageNews, Date publishDate) {
        this.newsId = newsId;
        this.typeId = typeId;
        this.typeName = typeName;
        this.newsTitle = newsTitle;
        this.newsContent = newsContent;
        this.newsImage = newsImage;
        this.isTop = isTop;
        this.isShowHome = isShowHome;
        this.viewCount = viewCount;
        this.isImageNews = isImageNews;
        this.publishDate = publishDate;
    }
}